package com.wx.mall.order.mapper;

import com.wx.mall.order.entity.ReturnOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 退款订单 Mapper 接口
 * </p>
 *
 * @author j
 * @since 2020-04-22
 */
public interface ReturnOrderMapper extends BaseMapper<ReturnOrder> {
    /**
     * 退货申请查询
     */
    @Select("select * from ord_return_order ")
    @Results({@Result(property = "id",column = "id"),@Result(property = "orderId",column = "order_id"),
            @Result(property = "applyTime",column = "apply_time"), @Result(property = "userAccount",column = "user_account"),
            @Result(property = "linkman",column = "linkman"),@Result(property = "linkmanMobile",column = "linkman_mobile"),
            @Result(property = "type",column = "type"),@Result(property = "returnMoney",column = "return_money"),
            @Result(property = "isReturnFreight",column = "is_return_freight"),@Result(property = "status",column = "status"),
            @Result(property = "disposeTime",column = "dispose_time"),@Result(property = "returnCause",column = "return_cause"),
            @Result(property = "evidence",column = "evidence"),@Result(property = "description",column = "description"),
            @Result(property = "remark",column = "remark"),@Result(property = "adminId",column = "admin_id"),})
    List<ReturnOrder> find(ReturnOrder returnOrder);

}
